package edu.washington.cs.workflow.recommender;

import edu.washington.cs.workflow.util.Log;
import edu.washington.cs.workflow.util.Utils;
import junit.framework.TestCase;

public class TempStaticTestDriver extends TestCase {
	
	
	
	/**
	 * Need to run overnight
	 * */
	
	public void testCrossword_static() {
		Log.logConfig("./experiments/static/crossword.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testCrossword_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	
	//see file jEdit, 1919
	public void testJEdit_static() {
		Log.logConfig("./experiments/static/jedit.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testJEdit_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	
	//use form like: addActionListener.add(this)
	public void testJabRef_search_static() {
		Log.logConfig("./experiments/static/jabref-search.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testJabRef_search_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	
	public void testJabRef_import_static() {
		Log.logConfig("./experiments/static/jabref-import.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testJabRef_import_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	
	//need to analyze the library
	public void testJabRef_export_static() {
		Log.logConfig("./experiments/static/jabref-export.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testJabRef_export_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	
	public void testGantt_setting_static() {
		Log.logConfig("./experiments/static/gantt-setting.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testGantt_setting_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}

//	/**
//	 * Gantt
//	 * */
	public void testGantt_save_static() {
		Log.logConfig("./experiments/static/gantt-save.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testGantt_save_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
    
	public void testGantt_next_static() {
		Log.logConfig("./experiments/static/gantt-next.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testGantt_next_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	
	public void testGantt_critical_static() {
		Log.logConfig("./experiments/static/gantt-critical.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testGantt_critical_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	
	public void testGantt_zoom_in_out_static() {
		Log.logConfig("./experiments/static/gantt-zoom.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testGantt_zoom_in_out_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	

	/**Freemind below*/
	
    public void testFreemindZoomIn_static() {
    	Log.logConfig("./experiments/static/freemind-zoom.txt");
		Utils.debuglog = true;
    	new TestReplacementActionRecommender().testFreemindZoomIn_static();
    	Utils.debuglog = false;
		Log.removeLogging();
	}
	
	
	public void testFreemind_export_static() {
		Log.logConfig("./experiments/static/freemind-export.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testFreemind_export_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	
	public void testFreemind_nextfile_static() {
		Log.logConfig("./experiments/static/freemind-next.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testFreemind_nextfile_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	
	public void testFreemind_toggled_static() {
		Log.logConfig("./experiments/static/freemind-node.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testFreemind_toggled_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	
	public void testFreemind_edge_style_static() {
		Log.logConfig("./experiments/static/freemind-edge.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testFreemind_edge_style_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
	
	public void testFreemind_export_branch_as_html_static() {
		Log.logConfig("./experiments/static/freemind-branch-export.txt");
		Utils.debuglog = true;
		new TestReplacementActionRecommender().testFreemind_export_branch_as_html_static();
		Utils.debuglog = false;
		Log.removeLogging();
	}
}
